package com.hifar.test.syncData.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hifar.test.syncData.pojo.HfEnvSyncTableConfig;
import com.hifar.test.syncData.pojo.VO.TableFieldVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhuWeiWei
 * @description: TODO
 * @date 2025/4/11 11:53
 */
@Mapper
public interface HfEnvSyncTableConfigMapper extends BaseMapper<HfEnvSyncTableConfig> {
    /**
     * 查询系统所有表
     *
     * @param page
     * @param queryWrapper
     * @return
     */
    Page<HfEnvSyncTableConfig> selectAllTable(Page<HfEnvSyncTableConfig> page
            , @Param(Constants.WRAPPER) QueryWrapper<HfEnvSyncTableConfig> queryWrapper);

    /**
     * 查询表中字段
     *
     * @param tableName
     * @return
     */
    List<TableFieldVO> listTableField(@Param("tableName") String tableName);
}
